package com.micro.school.order.service;

import com.micro.school.order.entity.PayPrepaymentProject;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * 预缴费项目管理(PayPrepaymentProject)表服务接口
 *
 * @author makejava
 * @since 2025-08-14 17:27:00
 */
public interface PayPrepaymentProjectService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    PayPrepaymentProject queryById(Integer id);

    /**
     * 分页查询
     *
     * @param payPrepaymentProject 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    List<PayPrepaymentProject> queryList(PayPrepaymentProject payPrepaymentProject);

    /**
     * 新增数据
     *
     * @param payPrepaymentProject 实例对象
     * @return 实例对象
     */
    PayPrepaymentProject insert(PayPrepaymentProject payPrepaymentProject);

    /**
     * 修改数据
     *
     * @param payPrepaymentProject 实例对象
     * @return 实例对象
     */
    void update(PayPrepaymentProject payPrepaymentProject);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

}
